package com.ruoyi.controller;

import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.management.domain.CommissionManagementDetail;
import com.ruoyi.management.service.ICommissionManagementDetailService;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * 佣金明细Controller
 * 
 * @author ruoyi
 * @date 2024-01-17
 */
@RestController
@RequestMapping("/system/detail")
public class CommissionManagementDetailController extends BaseController
{
    @Autowired
    private ICommissionManagementDetailService commissionManagementDetailService;

    /**
     * 查询佣金明细列表
     */
//    @PreAuthorize("@ss.hasPermi('system:detail:list')")
    @GetMapping("/list")
    public TableDataInfo list(CommissionManagementDetail commissionManagementDetail)
    {
        startPage();
        List<CommissionManagementDetail> list = commissionManagementDetailService.selectList(commissionManagementDetail);
        return getDataTable(list);
    }

}
